/**
 * 
 */
package com.hfjyz.registration.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.validation.BindException;
import org.springframework.validation.Errors;

import com.hfjyz.registration.command.OfficeEditCommand;
import com.hfjyz.registration.command.OfficeListCommand;

/**
 *
 */
public interface OfficeService extends BaseService {

	@SuppressWarnings("rawtypes")
	Map initEdit(OfficeEditCommand cmd, Errors errors) throws Exception;

	void editOk(HttpServletRequest request, OfficeEditCommand cmd,
			BindException errors) throws Exception;

	@SuppressWarnings("rawtypes")
	Map initSearch(OfficeListCommand cmd, Errors errors) throws Exception;

	void search(HttpServletRequest request, OfficeListCommand cmd)
			throws Exception;

	void delete(HttpServletRequest request, OfficeListCommand cmd,
			BindException errors) throws Exception;
}
